<template>
  <scroll-view scroll-y class="user_in">
    <u-parse :html="agreementContent"></u-parse>
  </scroll-view>
</template>

<script>
  import {request} from "../../util/api";

  export default {
    name: "",
    data() {
      return {
        agreementContent: ''
      }
    },
    mounted() {
      this.getAgreement()
    },
    methods: {
      getAgreement() {
        var that_ = this;
        request({
          url: '/app/base/agreement',
          token: true
        }).then(ret => {
          that_.agreementContent = ret.data.agreementContent;
        })
      }
    }
  }
</script>

<style scoped>
  .user_in {
    padding: 20upx;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
</style>
